Theme switching issue fixed in SDK and sample app screens#22
Merged
Conversation
pmathew92
approved these changes
May 4, 2026
NandanPrabhu
approved these changes
May 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
💬 Summary
Resolves theme switching not being uniformly applied across the app. All screens now respond correctly to theme changes at runtime, and the selected theme persists between app launches.
📋 Changes
Theme Infrastructure
radius.largetoken (20pt) toAuth0RadiusTokens— replaces hardcodedcornerRadius(20)occurrencesthemedNavigationTitle(_:theme:)view extension using.principaltoolbar slot to colour navigation titles (.navigationTitle()bypasses SwiftUI styling)ThemeManagernow persists selected theme toUserDefaultsSDK Screens Fixed (
Auth0UniversalComponents)EmailPhoneEnrollmentView,OTPView,RecoveryCodeEnrollmentView,SavedAuthenticatorsView,TOTPPushQRCodeView— added themed backgrounds,toolbarBackground,.tint(), and themed navigation titlesMyAccountAuthMethodView/MyAccountAuthMethodsView— icon template rendering, themed background and toolbarEnrollPasskeyView— replaced hardcodedColor.whiteandColor("Muted")with theme tokensAuth0Loader,ErrorScreen— radius token + safe-area-aware backgroundOTPTextField— addedcursorTintColor: UIColorparameter, set in bothmakeUIViewandupdateUIViewTOTPPushQRCodeViewModel— moved QR rendering to View; ViewModel now exposes raw URI; View usesCIFalseColorfilter to re-colour QR modules with theme colours at render timeSample App Screens Fixed (AppUIComponents)
LoginOptionsView— themed background, brand-derived gradient, template icons, themed titleWelcomeView— template icons, themed logout button, radius tokenSplashView— added theme environment, template Auth0 logo📹 Video recording
Issue
theme_issue_480p.mov
Fix
theme_issue_fix_480p.mov